QT       += core gui opengl

greaterThan(QT_MAJOR_VERSION, 4): QT += widgets

CONFIG += \
    c++11 \
    console \
    resources_big

# The following define makes your compiler emit warnings if you use
# any Qt feature that has been marked deprecated (the exact warnings
# depend on your compiler). Please consult the documentation of the
# deprecated API in order to know how to port your code away from it.
DEFINES += QT_DEPRECATED_WARNINGS

# You can also make your code fail to compile if it uses deprecated APIs.
# In order to do so, uncomment the following line.
# You can also select to disable deprecated APIs only up to a certain version of Qt.
#DEFINES += QT_DISABLE_DEPRECATED_BEFORE=0x060000    # disables all the APIs deprecated before Qt 6.0.0

SOURCES += \
    CommonLib/Callback/Callback.cpp \
    CommonLib/Common/Common.cpp \
    CommonLib/EventHandle/EventConnect.cpp \
    CommonLib/EventHandle/EventHandle.cpp \
    CommonLib/HudRtt/EventInteract.cpp \
    CommonLib/LayoutWidget/LayoutWidget.cpp \
    CommonLib/ListWidget/ListWidget.cpp \
    CommonLib/ListWidget/ModelObject.cpp \
    CommonLib/ListWidget/PropertyWidget.cpp \
    CommonLib/MainWindow/MainWindow.cpp \
    CommonLib/Manupulator/ManupulatorTest.cpp \
    CommonLib/Primitive/PrimitiveObject.cpp \
    CommonLib/Primitive/PrimitiveWidget.cpp \
    CommonLib/Shader/ShaderDemo.cpp \
    CommonLib/Visitor/Visitor.cpp \
    EventControl.cpp \
    Solar/CelestialBody.cpp \
    Solar/Line.cpp \
    Solar/Orbit.cpp \
    Solar/SimulationTimer.cpp \
    Solar/Solar.cpp \
    Solar/Sphere.cpp \
    day1.cpp \
    day2.cpp \
    day3_4.cpp \
    day5.cpp \
    day6_7.cpp \
    day8.cpp \
    day9.cpp \
    day_load_obj.cpp \
    day_qt_layout.cpp \
    day_shader.cpp \
    main.cpp \

HEADERS += \
    CommonLib/Callback/Callback.h \
    CommonLib/Common/Common.h \
    CommonLib/Common/Interface.h \
    CommonLib/EventHandle/EventConnect.h \
    CommonLib/EventHandle/EventHandle.h \
    CommonLib/HudRtt/EventInteract.h \
    CommonLib/LayoutWidget/LayoutWidget.h \
    CommonLib/ListWidget/ListWidget.h \
    CommonLib/ListWidget/ModelObject.h \
    CommonLib/ListWidget/PropertyWidget.h \
    CommonLib/MainWindow/MainWindow.h \
    CommonLib/Manupulator/ManupulatorTest.h \
    CommonLib/Primitive/PrimitiveObject.h \
    CommonLib/Primitive/PrimitiveWidget.h \
    CommonLib/Shader/ShaderDemo.h \
    CommonLib/Visitor/Visitor.h \
    EventControl.h \
    Solar/CelestialBody.h \
    Solar/Line.h \
    Solar/Orbit.h \
    Solar/SimulationTimer.h \
    Solar/Solar.h \
    Solar/Sphere.h \
    day1.h \
    day2.h \ \
    day3_4.h \
    day5.h \
    day6_7.h \
    day8.h \
    day9.h \
    day_load_obj.h \
    day_qt_layout.h \
    day_shader.h

# Default rules for deployment.
qnx: target.path = /tmp/$${TARGET}/bin
else: unix:!android: target.path = /opt/$${TARGET}/bin
!isEmpty(target.path): INSTALLS += target

win32:CONFIG(release, debug|release): LIBS += -L$$PWD/../../../../osg/OpenSceneGraph-3.4.0-VC2015-64/lib/ \
    -lOpenThreads -losg -losgDB -losgUtil -losgGA -losgViewer -losgText -losgQt -losgFX
else:win32:CONFIG(debug, debug|release): LIBS += -L$$PWD/../../../../osg/OpenSceneGraph-3.4.0-VC2015-64/lib/ \
    -lOpenThreadsd -losgd -losgDBd -losgUtild -losgGAd -losgViewerd -losgTextd -losgQtd -losgFXd

INCLUDEPATH += $$PWD/../../../../osg/OpenSceneGraph-3.4.0-VC2015-64/include
DEPENDPATH += $$PWD/../../../../osg/OpenSceneGraph-3.4.0-VC2015-64/include

DISTFILES += \
    CommonLib/CMakeLists.txt \
    CommonLib/Callback/CMakeLists.txt \
    CommonLib/Common/CMakeLists.txt \
    CommonLib/EventHandle/CMakeLists.txt \
    CommonLib/HudRtt/CMakeLists.txt \
    CommonLib/LayoutWidget/CMakeLists.txt \
    CommonLib/ListWidget/CMakeLists.txt \
    CommonLib/MainWindow/CMakeLists.txt \
    CommonLib/Manupulator/CMakeLists.txt \
    CommonLib/Primitive/CMakeLists.txt \
    CommonLib/Shader/CMakeLists.txt \
    CommonLib/Visitor/CMakeLists.txt

RESOURCES += \
    objects.qrc
